#include "Player.h"

Player::Player() : m_ssheet(4, 4), m_sprite(&m_ssheet)	
{
	
}

Player::~Player()
{

}

bool Player::Load()
{
	return m_ssheet.Load("Images/TestSprite1.png");
}

void Player::Draw()
{
//	m_sprite.Draw(TheScreen::Instance());
	m_sprite.Draw();
}

void Player::Update()
{
	TheEventPoller::Instance()->Update();
//	m_sprite.Update(TheTimer::Instance()->GetDT());
	m_sprite.Update();
}

void Player::OnKeyBoardEvent(const SDL_KeyboardEvent& k)
{
	if(k.keysym.sym == SDLK_ESCAPE && k.state == SDL_PRESSED)
	{
		exit(0);
	}
}